package com.explorati.design_pattern.creational.builder.example2.v2;

import com.explorati.design_pattern.creational.builder.example2.v2.Computer.T410i;
import com.explorati.design_pattern.creational.builder.example2.v2.Computer.X201;

public class Test {

	public static void main(String[] args) {
		Computer computer = new Computer.T410i().buildMonitor("...").buildCpu("i5-450").build();
		System.out.println(computer);
//		T410i t410i = new T410i();
//		Computer computer = t410i.buildCpu("i5-450").buildHardDisk("500GB 7200转").build();
//		System.out.println(computer);
		
		System.out.println("---------------------------");
		
		X201 x201 = new X201();
		Computer computer1 = x201.buildType().buildCpu().buildHardDisk().buildMonitor().buildRam().buildOs().build();
		System.out.println(computer1);
	}
}
